   // ****************************************************** 
   //
   // Copyright 2011 OpenAjax Alliance
   //
   // Licensed under the Apache License, Version 2.0 (the "License");
   // you may not use this file except in compliance with the License.
   // You may obtain a copy of the License at
   //
   //    http://www.apache.org/licenses/LICENSE-2.0
   //
   // Unless required by applicable law or agreed to in writing, software
   // distributed under the License is distributed on an "AS IS" BASIS,
   // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   // See the License for the specific language governing permissions and
   // limitations under the License.
   //
   // ****************************************************** 


Components.utils.import("resource://oaacacheinspector/cache-inspector-common.js");


OAA_CI_UTILS.toggleSidebar = function (id) {

  OAA_CI_UTILS.updateToolbar(window, id);
  
  // show sidebar
  toggleSidebar(id);
  
};


/** ================================================================
*
* showLog
*
* @desc shows the log information for the last evaluation
*
* @param  format   String format of the the log file, valid values TEXT, XML, JSON and HTML
*
* @return nothing
*
* =============================================================== */

OAA_CI_UTILS.showLog = function(format) {

  OAA_CI_UTILS.showWindowLog(window, format);

};


/** ================================================================
*
* showResults
*
* @desc shows the results information for the last evaluation
*
* @param  format   String format of the the results file, valid values TEXT, XML, JSON and HTML
*
* @return nothing
*
* =============================================================== */

OAA_CI_UTILS.showResults = function(format) {

  OAA_CI_UTILS.showWindowResults(window, format);

};
